import request from '@/utils/request'

// 获取属性分类
export const reqAttrInfo = (category1Id, category2Id, category3Id) => request({ url:`/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`})

// 修改或添加attr
export const reqSaveAttrInfo = (attrParams) => request({ url: '/admin/product/saveAttrInfo',method:'post',data:attrParams })

//删除某一项attr
export const reqDeleteAttr = (attrId) => request({ url: `/admin/product/deleteAttr/${attrId}`, method:'delete'})